﻿using System.Collections.Generic;

namespace StockMonitor.Business
{
    /// <summary>
    /// 历史价格提供接口
    /// </summary>
    public interface IHistoryPriceProvider
    {
        /// <summary>
        /// 获取某只股票历史价格
        /// </summary>
        /// <param name="stockCode">股票代码</param>
        /// <param name="dayCount">获取从昨天起的天数</param>
        /// <returns>历史价格列表</returns>
        List<StockPrice> GetHistoryPrice(string stockCode, int dayCount);

        /// <summary>
        /// 获取某只股票历史收盘价格
        /// </summary>
        /// <param name="stockCode">股票代码</param>
        /// <param name="dayCount">获取从昨天起的天数</param>
        /// <returns>历史收盘价格从远到进排序</returns>
        List<double> GetHistoryClosePrice(string stockCode, int dayCount);
    }
}
